package com.ssfGame.puremvc.controller 
{
	
	import com.ssfGame.puremvc.StaticConst;
	
	import org.puremvc.as3.patterns.command.MacroCommand;
	
	/**
	 * 
	 * @author chery
	 */
	public class StartupCommand extends MacroCommand
	{
		/**
		 * startup
		 */
		public function StartupCommand()
		{
			super();
		}
		override protected function initializeMacroCommand():void{
			
			addSubCommand(ModelPrepCommand);//模型预初始化
			addSubCommand(ControllerPrepCommand);//command初始化
			
			addSubCommand(ViewPrepCommand);//视图预初始化
			
			facade.removeCommand(StaticConst.N_C_STARTUP);//清除程序启动监听
				
				
		}
	}
}